cmake_minimum_required(VERSION 3.15)

include(proj.conf)

find_package(bouffalo_sdk REQUIRED HINTS $ENV{BL_SDK_BASE})

sdk_add_include_directories(rtos/include .)
sdk_add_include_directories(web)
sdk_add_include_directories(storage)
sdk_add_include_directories(wifi)

# User
sdk_add_compile_definitions(-DCONFIG_CLI_CMD_ENABLE)
#sdk_add_compile_definitions(-DBL616_DHCP_DEBUG)
# sdk_add_compile_definitions(-DSIMU_DATA_TEST)
# 去掉这里 PSRAM可用
sdk_add_compile_definitions(-DCONFIG_PSRAM_COPY_CODE)
sdk_add_compile_definitions(-DCONFIG_USB_EHCI_ISO)

target_sources(app PRIVATE
    wifi/wifi_event.c
    storage/storage.c
    web/cJSON.c
    web/mlwip_https.c
)

sdk_set_linker_script(bl616_psram.ld)
sdk_set_main_file(main.c)

project(smart_config)
